home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2006 December
/
chip-cd_2006_12.zip
/
12
/
Pakiet internetowy
/
Menedzery hasel
/
PasswordManagerXP 2.2.360
/
PwdManager-Setup.exe
/
mozilla
/
pwdmgrxpOverlay.js
< prev
next >
Wrap
Text File
|
2006-04-18
|
1KB
|
46 lines
const LoaderExe = "";
const PmXp_cid = "@cp-lab.com/PasswordManagerXP/Extension;1";
try {
PmXp_obj = Components.classes[PmXp_cid].createInstance();
PmXp_obj = PmXp_obj.QueryInterface(Components.interfaces.IPmXpExtension);
PmXp_obj.SetLoaderExe(LoaderExe);
} catch (err) {
alert(err);
}
window.addEventListener("load", PmXp_initOverlay, false);
window.addEventListener('submit', PmXp_SubmitHandler, true);
HTMLFormElement.prototype.PmXp_OldSubmitHandler = HTMLFormElement.prototype.submit;
HTMLFormElement.prototype.submit = PmXp_SubmitHandler;
function PmXp_Action(act_no)
{
try {
PmXp_obj.DoAction(act_no);
} catch (err) {
alert(err);
}
}
function PmXp_contextPopupShowing()
{
var v = gContextMenu.isTargetATextBox(gContextMenu.target);
gContextMenu.showItem("pmxp-FillForm", v);
gContextMenu.showItem("pmxp-SaveForm", v);
gContextMenu.showItem("pmxp-GenPassword", v);
gContextMenu.showItem("pmxp-separator1", v && gContextMenu.shouldShowSeparator("pmxp-separator1"));
gContextMenu.showItem("pmxp-separator2", v && gContextMenu.shouldShowSeparator("pmxp-separator2"));
}
function PmXp_initOverlay()
{
var menu = document.getElementById("contentAreaContextMenu");
menu.addEventListener("popupshowing", PmXp_contextPopupShowing, false);
}
function PmXp_SubmitHandler(event) {
PmXp_Action(6);
this.PmXp_OldSubmitHandler();
}